﻿namespace IDAL
{
    public interface IbaseDAL<T> where T : class
    {
        public Task<int> AddAsync(T t);
        public Task<int> AddRangeAsync(List<T> list);
        public Task<int> UpdateAsync(T t);
        public Task<int> UpdateRangeAsync(List<T> list);
        public Task<int> DeleteAsync(T t);
        public Task<int> DeleteRangeAsync(List<T> list);
        public IQueryable<T> GetAll();
    }
}
